package com.fire.threadpool.interceptLongTimeThread;

/**
 * @date 2022/3/24
 * @author zwd
 * @email zwd@hhh.com
 */
public class DelayTaskThread extends DelayTask implements Runnable{
	private String prefixName;
	private Thread currentThread;
	DelayTaskThread(String prefixName, long time) {
		super(prefixName, time);
		this.prefixName = prefixName;
	}

	@Override
	public void run() {
		System.out.println(Thread.currentThread().getName() + "has bean called");
		this.currentThread = Thread.currentThread();
		delayTask();
	}

	public void delayTask() {
	}

	Thread getCurrentThread() {
		return currentThread;
	}
}
